package com.example.neosoft;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class CadastroActivity extends ActionBarActivity implements
		OnClickListener {

	private Button voltar, cadastrar;
	private EditText nome, senha, confirmacaoSenha;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_cadastro);

		nome = (EditText) findViewById(R.id.editNome);
		senha = (EditText) findViewById(R.id.editSenha);
		confirmacaoSenha = (EditText) findViewById(R.id.editConfirmacaoSenha);

		cadastrar = (Button) findViewById(R.id.buttonCadastrar);
		voltar = (Button) findViewById(R.id.btnVoltar);

		cadastrar.setOnClickListener(this);
		voltar.setOnClickListener(this);
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		// Handle action bar item clicks here. The action bar will
		// automatically handle clicks on the Home/Up button, so long
		// as you specify a parent activity in AndroidManifest.xml.
		int id = item.getItemId();
		if (id == R.id.action_settings) {
			return true;
		}
		return super.onOptionsItemSelected(item);
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		Intent intentL = new Intent(CadastroActivity.this, LoginActivity.class),
				intentQ = new Intent(CadastroActivity.this, QuestionarioActivity.class),
						intentC = new Intent(CadastroActivity.this, CadastroActivity.class);

		switch (v.getId()) {
		case R.id.btnVoltar:
			startActivity(intentL);
			break;
		case R.id.buttonCadastrar:
			break;
		}
	}

}
